class CreateTransportes < ActiveRecord::Migration
  def self.up
    create_table :transportes do |t|
      t.column :created_at, :datetime
      t.column :ended_at, :datetime
      t.column :ndt, :float
      t.column :uf_id, :integer
      t.column :pares, :float
      t.column :cxs, :float
      t.column :tipo_id, :integer
      t.column :m, :float
      t.column :peso, :float
      t.column :status_id, :integer
      t.column :deposito_id, :integer, :null => false
      t.column :box, :integer, :null => false
      t.column :transportadora_id, :integer
      t.column :usuario_id, :integer
      t.column :obs_trans, :string
      t.column :etiqueta, :boolean, :default => false
    end
  end

  def self.down
    drop_table :transportes
  end
end
